package cn.touna.jss.modules.third.huache.entity;

import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.contraints.facet.Second;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

/**
 *华策请求参数
 */
public class HuaCheRequestEntity extends BaseDomain {
    /**
     * 名字
     **/
    @NotBlank(message = "名字不能为空", groups = {First.class})
    private String name;
    /**
     * 身份证
     **/
    @IdCard(message = "身份证校验失败", groups = {First.class})
    private String idCard;
    /**
     * 电话
     **/
    @Mobile(message = "电话号码校验失败", groups = {First.class, Second.class})
    private String mobile;
    /**
     * 联系人or申请人
     */
    private String menType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMenType() {
        return menType;
    }

    public void setMenType(String menType) {
        this.menType = menType;
    }
}
